var java = require('java');
java.classpath.push(__dirname + '/javatools-nodeps.jar');
//console.log(java.callStaticMethodSync);
var charArray = java.newArray("char", "select * from dual".split(''));
var cartb = java.newInstanceSync('oracle.javatools.buffer.CharArrayReadTextBuffer',charArray);
var r = java.callStaticMethodSync('oracle.javatools.parser.plsql.PlsqlParser','parseSql',cartb);
console.log(JSON.stringify(r));